

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_COLLISION_MODULE_BLOCK_1607428807829'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_COLLISION_MODULE_BLOCK_1607428807829'] = ``;
            Blockly.Arduino.definitions_['define_EXT_COLLISION_MODULE_BLOCK_1607428807829'] = `int collision_pin${pin} = ${pin};`;
            Blockly.Arduino.definitions_['setup_EXT_COLLISION_MODULE_BLOCK_1607428807829'] = `pinMode(collision_pin${pin},INPUT);`;
             return  [`digitalRead(collision_pin${pin}) == LOW`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        